<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Extend_app.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/Extend_app.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '扩展应用',
        name: 'Extend_app',
        url: '/Extend_app/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: { image: [], name: '', path_type: '', path: '', path_name: '', appid: '', apppath: '' },
      editFormOptions: [
        [{ title: '图标', field: 'image', type: 'imgupgrade' }],
        [
          { title: '列表名称', field: 'name' },
          { dataKey: 'ExtendAppType', data: [], title: '路径类型', field: 'path_type', type: 'select' },
        ],
        [
          { title: '路径', field: 'path' },
          { title: '路径名称', field: 'path_name' },
        ],
        [
          { title: '外链appid', field: 'appid' },
          { title: '外链路径', field: 'apppath' },
        ],
      ],
      searchFormFields: {},
      searchFormOptions: [],
      columns: [
        { field: 'image', title: '图标', type: 'imgupgrade', width: 120, align: 'left', sortable: true },
        { field: 'name', title: '列表名称', type: 'string', width: 120, align: 'left' },
        { field: 'path', title: '路径', type: 'string', width: 120, align: 'left' },
        { field: 'path_name', title: '路径名称', type: 'string', width: 120, align: 'left' },
        { field: 'path_type', title: '路径类型', type: 'int', bind: { key: 'ExtendAppType', data: [] }, width: 120, align: 'left' },
        { field: 'appid', title: '外链appid', type: 'string', width: 120, align: 'left' },
        { field: 'apppath', title: '外链路径', type: 'string', width: 120, align: 'left' },
        { field: 'id', title: 'id', type: 'int', width: 120, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'createDate', title: '创建时间', type: 'datetime', width: 120, align: 'left', sortable: true },
        { field: 'createID', title: '创建人ID', type: 'int', width: 120, hidden: true, align: 'left' },
        { field: 'creator', title: '创建人', type: 'string', width: 120, align: 'left' },
        { field: 'modifier', title: '修改人', type: 'string', width: 120, align: 'left' },
        { field: 'modifyDate', title: '修改时间', type: 'datetime', width: 120, align: 'left', sortable: true },
        { field: 'modifyID', title: '修改人ID', type: 'int', width: 120, hidden: true, align: 'left' },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
